﻿/* MedicalRulesEngine.API/wwwroot/swagger-ui/custom.css */
.swagger-ui .topbar {
    background-color: #1890ff;
}

    .swagger-ui .topbar .download-url-wrapper .select-label {
        color: white;
    }

.swagger-ui .info .title {
    color: #1890ff;
}

.swagger-ui .scheme-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: #52c41a;
}

.swagger-ui .opblock.opblock-post .opblock-summary-method {
    background: #1890ff;
}

.swagger-ui .opblock.opblock-put .opblock-summary-method {
    background: #faad14;
}

.swagger-ui .opblock.opblock-delete .opblock-summary-method {
    background: #ff4d4f;
}

.swagger-ui .model-box {
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.swagger-ui .model .model-title {
    color: #1890ff;
    font-weight: 600;
}

.swagger-ui .parameter__name {
    font-weight: 600;
    color: #262626;
}

.swagger-ui .parameter__type {
    color: #595959;
    font-size: 12px;
}

.swagger-ui .response-col_status {
    font-weight: 600;
}

.swagger-ui .response-col_description {
    color: #595959;
}

/* 自定义标签颜色 */
.swagger-ui .opblock-tag {
    border-left: 4px solid #1890ff;
    background: rgba(24, 144, 255, 0.05);
}

    .swagger-ui .opblock-tag:hover {
        background: rgba(24, 144, 255, 0.1);
    }

/* 响应示例样式 */
.swagger-ui .highlight-code {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
}

/* 参数表格样式 */
.swagger-ui .parameters-col_description {
    color: #24292e;
}

.swagger-ui .parameter__extension,
.swagger-ui .parameter__in {
    color: #6f42c1;
    font-weight: 600;
}

/* 错误消息样式 */
.swagger-ui .errors-wrapper {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

    .swagger-ui .errors-wrapper .error-wrapper .error {
        color: #cf1322;
    }

/* 成功消息样式 */
.swagger-ui .response.highlighted {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}
